home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mastering Microsoft Visual Basic 5
/
Mastering Microsoft Visual Basic 5.ISO
/
sampapps
/
objectsharing
/
someobject.cls
< prev
Wrap
Text File
|
1997-01-27
|
925b
|
41 lines
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
END
Attribute VB_Name = "SomeObject"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Option Explicit
Private strText As String
Implements IStringCase
Public Event TextChanged(strValue As String)
Public Property Get Text() As String
Text = strText
End Property
Public Property Let Text(ByVal strValue As String)
strText = strValue
RaiseEvent TextChanged(strValue)
End Property
Public Sub Display()
MsgBox "The object text is: " & vbCrLf & strText
End Sub
Private Sub Class_Initialize()
' Initialization Code
strText = ""
End Sub
Public Function IStringCase_LCaseText() As String
IStringCase_LCaseText = LCase(strText)
End Function
Public Function IStringCase_UCaseText() As String
IStringCase_UCaseText = UCase(strText)
End Function